package BitCreeekClient;

import java.io.Serializable;

public class P2P_Packet implements IP2P_Packet, Serializable {

    P2P_MessageType type;
    private Object value;

    public P2P_Packet ( P2P_MessageType type, Object value ) {
        this.type = type;
        this.value = value;
    }

    public P2P_MessageType getType () {
        return type;
    }

    public void setType ( P2P_MessageType type ) {
        this.type = type;
    }

    public Object getValue () {
        return value;
    }

    public void setValue ( Object value ) {
        this.value = value;
    }
}
